package com.game;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Point;
import java.util.Vector;

public class MirrorBall extends Ball {
	private boolean mirrorSet;
	private boolean laserColiding;
	public Vector<BallBool> ballCol;
	public int ID;
	
	
	public MirrorBall(Context context, int imgRef, Point pos, BackgroundMirror bgmirror, int id) 
	{
		super(context, imgRef, pos, bgmirror);	
		mirrorSet = false;
		ID = id;
		setLaserColiding(false);
	}
	
	public void resetBallBool(int numBall)
	{
		ballCol = new Vector<BallBool>();
		for(int i = 0; i < numBall; i++)
		{
			ballCol.add(new BallBool(false));
		}
	}
	
	public void moveMirror(Point TopLeftPosition)
	{
		Point pos = new Point();
		pos.x = TopLeftPosition.x - getRadius();
		pos.y = TopLeftPosition.y - getRadius();
		
		setPosition(pos);
		mirrorSet = true;
	}
	
	public void onDraw(Canvas canvas)
	{
		if(mirrorSet)	super.onDraw(canvas);
	}
	
	public boolean getMirrorSet()
	{
		return mirrorSet;
	}

	public void setLaserColiding(boolean laserColiding) {
		this.laserColiding = laserColiding;
	}

	public boolean isLaserColiding() {
		return laserColiding;
	}
}
